﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace SwimmingCompetition
{
    public class Athlete
    {
        public string Lane { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
        public string Surname { get; set; }
        public string Society { get; set; }
        public string Birthday { get; set; }
        public string TimeRegistry { get; set; }
        public string TimeResult { get; set; }
    }

    public class SingleTurn
    {
        public SingleTurn()
        {
            Athlete = new List<Athlete>();
        }
        public string NameTurn { get; set; }
        public string NumeberTurn { get; set; }
        public List<Athlete> Athlete;
    }

    public class StartListSingleComp
    {
        public StartListSingleComp()
        {
            StartL = new List<SingleTurn>();
        }
        public List<SingleTurn> StartL;
        public string NameSingleComp { get; set; }
    }

    public class SingleCompetition
    {
        public string Hour { get; set; }
	    public string Category { get; set; }
	    public string Spec{ get; set; }
        public string Turn { get; set; }
    }
    public class DayProgram
    {
        public DayProgram()
        {
            CompetitionsOfDay =  new List<SingleCompetition>();
        }
        public string Date { get; set; }
        public List<SingleCompetition> CompetitionsOfDay;
    }

    class EventObject
    {
        public EventObject()
        {
            ProgramList = new List<DayProgram>();
            StartList = new List<StartListSingleComp>();
        }

        public string NameEvent { get; set; }
        public string CategoryEvent { get; set; }
        public string Organization { get; set; }
        public string Location { get; set; }
        public string Type { get; set; }
        public string StartEv { get; set; }
        public string EndEv { get; set; }
        public string EndReg { get; set; }
        public string PoolBase { get; set; }
        public string LimitTime { get; set; }
        public string Lanes { get; set; }

        public string Referee { get; set; }
        public string Coadjuctor { get; set; }
        public string Depjudge { get; set; }
        public string FSEmpl { get; set; }
        public string CompEmpl { get; set; }

        public string CronoType { get; set; }
        public string CronoServ { get; set; }
        public string CronoSociety  { get; set; }

        public string Speaker { get; set; }
        public string Doctor { get; set; }
        public string Manager { get; set; }

        public List<DayProgram> ProgramList;

        public List<StartListSingleComp> StartList;
        public string Note { get; set; }
    }
}
